projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54f1eb4
)
Pass orientation property to accessible
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 12 Oct 2020 04:19:55 +0000
(
00:19
-0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 12 Oct 2020 19:10:40 +0000
(15:10 -0400)
We should set the accessible properties we have,
where they make sense. So set orientation, if the
widget is orientable.
gtk/gtkwidget.c
patch
|
blob
|
history
diff --git
a/gtk/gtkwidget.c
b/gtk/gtkwidget.c
index af1f84c05136ca98c34eb435dbc8745cbae0773d..a0e2d5ed13b74206c0a5754f156c289cf509b049 100644
(file)
--- a/
gtk/gtkwidget.c
+++ b/
gtk/gtkwidget.c
@@
-12143,6
+12143,10
@@
gtk_widget_update_orientation (GtkWidget *widget,
gtk_widget_add_css_class (widget, "vertical");
gtk_widget_remove_css_class (widget, "horizontal");
}
+
+ gtk_accessible_update_property (GTK_ACCESSIBLE (widget),
+ GTK_ACCESSIBLE_PROPERTY_ORIENTATION, orientation,
+ -1);
}
/**